package com.ts.common.enums;

/**
 * 状态码
 *
 * @author nolan
 */
public enum ResultCode {

    SUCCESS(200, "成功"),

    FAIL(400, "失败"),

    UNAUTHORIZED(401, "未认证"),

    NOT_FOUND(404, "接口不存在"),

    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),

    NOt_MATCHING(7001, "导入数据错误");

    public int code;
    public String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
